﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mantenedor.aspx.cs" Inherits="Solemne3.Mantenedor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Página sin título</title>
    <style type="text/css">
        .style1
        {
            width: 161px;
        }
        .style2
        {
            height: 23px;
        }
        .style4
        {
            height: 23px;
            width: 175px;
        }
        .style5
        {
            width: 175px;
        }
        #Select1
        {
            width: 158px;
        }
        #sucMatriz
        {
            width: 152px;
        }
        #Submit1
        {
            width: 181px;
        }
    </style>
<script language="javascript" type="text/javascript">
// <!CDATA[

function libSubmit_onclick() {

}

// ]]>
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
    
    </div>
    <asp:DropDownList ID="ddElegir" runat="server" 
        onselectedindexchanged="ddElegir_SelectedIndexChanged">
        <asp:ListItem>Libreria</asp:ListItem>
        <asp:ListItem>Sucursal</asp:ListItem>
    </asp:DropDownList>
    <asp:Panel ID="panelLibreria" runat="server" Height="129px">
        <table style="width:100%;">
            <tr>
                <td class="style1">
                    Internacional&nbsp; (SI/NO)</td>
                <td>
                    <asp:CheckBox ID="libCheckBoxInternacional" runat="server" 
                        oncheckedchanged="libCheckBoxInternacional_CheckedChanged1" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Nombre</td>
                <td>
                    <asp:TextBox ID="libNombre" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Cadena</td>
                <td>
                    <asp:TextBox ID="libCadena" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Comprados</td>
                <td>
                    <asp:TextBox ID="libComprados" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Vendidos</td>
                <td>
                    <asp:TextBox ID="libVendidos" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="libBoton" runat="server" onclick="libBoton_Click" 
                        Text="Enviar" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
        &nbsp;</p>
    <asp:Panel ID="panelSucursal" runat="server" Height="180px">
        <table style="width:100%;">
            <tr>
                <td class="style5">
                    Matriz</td>
                <td>
                    <asp:DropDownList ID="sucMatriz" runat="server" AutoPostBack="True" 
                        DataSourceID="SqlDataSource4" DataTextField="Nombre" DataValueField="Id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT [Id], [Nombre] FROM [Libreria]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT [Nombre] FROM [Libreria]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Ciudad</td>
                <td class="style2">
                    <asp:DropDownList ID="sucCiudad" runat="server" DataSourceID="SqlDataSource5" 
                        DataTextField="Nombre" DataValueField="Id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT [Nombre], [Id] FROM [Ciudad]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT [Nombre] FROM [Ciudad]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Comprados</td>
                <td class="style2">
                    <asp:TextBox ID="sucComprados" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    Vendidos</td>
                <td>
                    <asp:TextBox ID="sucVendidos" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="sucBoton" runat="server" Text="Enviar" onclick="sucBoton_Click" 
                        style="height: 26px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
        <asp:Label ID="labelAviso" runat="server" BorderColor="#FF3300" 
            BorderStyle="Double" Width="304px"></asp:Label>
    </p>
    </form>
</body>
</html>
